package com.easondongh.system.service;

import com.easondongh.system.domain.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easondongh.common.vo.BasePageQueryVo;
import com.easondongh.common.vo.PageResult;
import com.easondongh.system.vo.PermissionQueryVo;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/5/9 14:30
 */
public interface SysPermissionService extends IService<SysPermission>{

    PageResult<SysPermission> getByPage(BasePageQueryVo<PermissionQueryVo> queryCondition);

    /**
     * 根据用户id获取所拥有的权限uri
     * @param id
     * @return
     */
    List<String> getPermissionUriByUid(Integer id);
}
